//package com.example.hosptialtag.controller;
//
//import com.example.hosptialtag.service.StaffService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//@Controller
//public class StaffController {
//    @Autowired
//    private StaffService staffService;
//    @RequestMapping("/register")
//    public String register(){
//        return "register";
//    }
//    @RequestMapping("/login")
//    public String login(){
//        return "login";
//    }
//    @RequestMapping("/main")
//    public String main(){
//        return "main";
//    }
//    @RequestMapping("/createStaff")// 医护人员注册，密码MD5加密
//    public String createStaff(String staff_idcard, String staff_password, String staff_passwordRe, String staff_name, Model model){
//        return staffService.createStaff(staff_idcard, staff_password, staff_passwordRe, staff_name, model);
//    }
//    @RequestMapping("/loginStaff")// 医护人员登录
//    public String loginStaff(String name, String password, Model model){
//        return staffService.loginStaff(name, password, model);
//    }
//}
